package com.heima.utils.common;


import com.heima.model.wemedia.pojos.WmUser;

public class MyThreadLocal {
    private static ThreadLocal<WmUser> userThreadLocal=new ThreadLocal<>();

    private MyThreadLocal(){}

    public static void setUser(WmUser wmUser){
        userThreadLocal.set(wmUser);
    }

    public static WmUser getUser(){
        return userThreadLocal.get();
    }

    public static void rmUser(){
        userThreadLocal.remove();
    }
}
